package com.jlsoft.config.oauth.rbac;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 *
 */
public interface RbacService {
    /**
     * 自定义的权限表达式
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
